package com.atzxh.collection.list;

import java.util.ArrayList;

/**
 * @author 小红同学
 * @create 2022-10-12-9:31
 * @description
 */
@SuppressWarnings({"all"})
public class ArrayList_Source {
    public static void main(String[] args) {
        ArrayList list = new ArrayList();
        // ArrayList list = new ArrayList(8);

        //循环添加十个数据
        for (int i = 0; i <= 10; i++) {
            list.add(i);
        }
        //再加十五个
        for (int i = 11; i <= 15; i++) {
            list.add(i);
        }
        list.add(100);
        list.add(200);
        list.add(null);
        for (Object object : list) {
            System.out.println(object);
        }
    }

}
